package com.demo.service.impl;

import com.demo.domain.Banner;
import com.demo.dao.HomeDao;
import com.demo.domain.CarToon;
import com.demo.domain.Grid;
import com.demo.service.HomeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
/**
 * 首页业务层
 */
import java.util.List;
@Service("homeService")
public class HomeServiceImpl implements HomeService {
    @Autowired
    private HomeDao homeDao;

    //返回所有轮播图数据
    @Override
    public List<Banner> findAllBanners() {
        return homeDao.findAllBanners();
    }

    //返回所有导航栏数据
    @Override
    public List<Grid> findAllGrids() {
        return homeDao.findAllGrids();
    }

    //返回所有漫画模块数据
    @Override
    public List<CarToon> findAllCarToons() {
        return homeDao.findAllCarToons();
    }


}
